home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Samples / C++ / Direct3D / EffectEdit / EffectEdit.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-27  |  3.7 KB  |  128 lines

  1. // EffectEdit.h : main header file for the EFFECTEDIT application
  2. //
  3.  
  4. #if !defined(AFX_EFFECTEDIT_H__B3612813_398C_4D84_9B03_CEA8089AB7EF__INCLUDED_)
  5. #define AFX_EFFECTEDIT_H__B3612813_398C_4D84_9B03_CEA8089AB7EF__INCLUDED_
  6.  
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10.  
  11. #ifndef __AFXWIN_H__
  12.     #error include 'stdafx.h' before including this file for PCH
  13. #endif
  14.  
  15. #include "resource.h"       // main symbols
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CEffectEditCommandLineInfo:
  19. // See EffectEdit.cpp for the implementation of this class
  20. //
  21.  
  22. class CEffectEditCommandLineInfo : public CCommandLineInfo
  23. {
  24. public:
  25.     CEffectEditCommandLineInfo();
  26.     virtual void ParseParam(const TCHAR* pszParam, BOOL bFlag, BOOL bLast);
  27.     BOOL UseExternalEditor() { return m_bUseExternalEditor; }
  28.  
  29. private:
  30.     BOOL m_bUseExternalEditor;
  31. };
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CEffectEditDocManager:
  35. // I override this class to customize DoPromptFileName to potentially
  36. // default to the DXSDK media dir.
  37. //
  38. class CEffectEditDocManager : public CDocManager
  39. {
  40. public:
  41.     virtual BOOL DoPromptFileName(CString& fileName, UINT nIDSTitle,
  42.         DWORD lFlags, BOOL bOpenFileDialog, CDocTemplate* pTemplate);
  43. };
  44.  
  45. /////////////////////////////////////////////////////////////////////////////
  46. // CEffectEditApp:
  47. // See EffectEdit.cpp for the implementation of this class
  48. //
  49.  
  50. class CEffectEditApp : public CWinApp
  51. {
  52. private:
  53.     bool m_bRenderContinuously;
  54.     bool m_bAppActivated;
  55.  
  56. public:
  57.     void ActivateTextView();
  58.     void ActivateErrorsView();
  59.     void ActivateOptionsView();
  60.     void SelectLine(int iLine);
  61.     CEffectEditApp();
  62.     bool RenderContinuously() { return m_bRenderContinuously; }
  63.     void SetRenderContinuously(bool b) { m_bRenderContinuously = b; }
  64.  
  65.     bool AppActivated() { return m_bAppActivated; }
  66.     void SetAppActivated(bool b) { m_bAppActivated = b; }
  67.  
  68. // Overrides
  69.     // ClassWizard generated virtual function overrides
  70.     //{{AFX_VIRTUAL(CEffectEditApp)
  71.     public:
  72.     virtual BOOL InitInstance();
  73.     virtual BOOL OnIdle(LONG lCount);
  74.     //}}AFX_VIRTUAL
  75.  
  76. // Implementation
  77.     //{{AFX_MSG(CEffectEditApp)
  78.     afx_msg void OnAppAbout();
  79.     afx_msg void OnViewChooseFont();
  80.     afx_msg void OnViewTabOptions();
  81.     afx_msg void OnFileDefaultToDxsdkMediaFolder();
  82.     afx_msg void OnUpdateFileDefaultToDxsdkMediaFolder(CCmdUI* pCmdUI);
  83.     //}}AFX_MSG
  84.     DECLARE_MESSAGE_MAP()
  85. };
  86.  
  87.  
  88. /////////////////////////////////////////////////////////////////////////////
  89. // CTabOptionsDialog dialog
  90.  
  91. class CTabOptionsDialog : public CDialog
  92. {
  93. // Construction
  94. public:
  95.     CTabOptionsDialog(CWnd* pParent = NULL);   // standard constructor
  96.  
  97. // Dialog Data
  98.     //{{AFX_DATA(CTabOptionsDialog)
  99.     enum { IDD = IDD_TABS };
  100.     UINT    m_numSpaces;
  101.     int     m_TabsOrSpacesRadio;
  102.     //}}AFX_DATA
  103.  
  104.  
  105. // Overrides
  106.     // ClassWizard generated virtual function overrides
  107.     //{{AFX_VIRTUAL(CTabOptionsDialog)
  108.     protected:
  109.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  110.     //}}AFX_VIRTUAL
  111.  
  112. // Implementation
  113. protected:
  114.  
  115.     // Generated message map functions
  116.     //{{AFX_MSG(CTabOptionsDialog)
  117.         // NOTE: the ClassWizard will add member functions here
  118.     //}}AFX_MSG
  119.     DECLARE_MESSAGE_MAP()
  120. };
  121.  
  122. /////////////////////////////////////////////////////////////////////////////
  123.  
  124. //{{AFX_INSERT_LOCATION}}
  125. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  126.  
  127. #endif // !defined(AFX_EFFECTEDIT_H__B3612813_398C_4D84_9B03_CEA8089AB7EF__INCLUDED_)
  128.